package com.dream.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dream.bean.Department;
import com.dream.dao.DepartmentMapper;

@Service
public class DepartmentService {
	
	@Autowired
	private DepartmentMapper departmentMapper;

	/**
	 * 得到部门对象集合
	 * @return
	 */
	public List<Department> getDepartmentAll() {
		List<Department> list = departmentMapper.selectByExample(null);
		return list;
	}

	
}
